package com.st.book.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Hello
 * @since 2021-11-15
 */
@TableName("g_book")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图书编号
     */
    private String isbn;

    /**
     * 图书标题
     */
    private String title;

    /**
     * 图书成本
     */
    private Float cost;

    /**
     * 图书售价
     */
    private Float price;

    /**
     * 出版社编号
     */
    private String pId;

    /**
     * 类别编号
     */
    private Integer categoryId;

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public Float getCost() {
        return cost;
    }

    public void setCost(Float cost) {
        this.cost = cost;
    }
    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }
    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    @Override
    public String toString() {
        return "Book{" +
            "isbn=" + isbn +
            ", title=" + title +
            ", cost=" + cost +
            ", price=" + price +
            ", pId=" + pId +
            ", categoryId=" + categoryId +
        "}";
    }
}
